package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName exam_questions
 */
@TableName(value ="exam_questions")
public class ExamQuestions implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 试题名称
     */
    private String questionname;

    /**
     * 试题分数
     */
    private Integer score;

    /**
     * 是否可用（1可用，2不可用）
     */
    private Integer isusable;

    /**
     * 试题描述
     */
    private String questiondescribe;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 试题名称
     */
    public String getQuestionname() {
        return questionname;
    }

    /**
     * 试题名称
     */
    public void setQuestionname(String questionname) {
        this.questionname = questionname;
    }

    /**
     * 试题分数
     */
    public Integer getScore() {
        return score;
    }

    /**
     * 试题分数
     */
    public void setScore(Integer score) {
        this.score = score;
    }

    /**
     * 是否可用（1可用，2不可用）
     */
    public Integer getIsusable() {
        return isusable;
    }

    /**
     * 是否可用（1可用，2不可用）
     */
    public void setIsusable(Integer isusable) {
        this.isusable = isusable;
    }

    /**
     * 试题描述
     */
    public String getQuestiondescribe() {
        return questiondescribe;
    }

    /**
     * 试题描述
     */
    public void setQuestiondescribe(String questiondescribe) {
        this.questiondescribe = questiondescribe;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ExamQuestions other = (ExamQuestions) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getQuestionname() == null ? other.getQuestionname() == null : this.getQuestionname().equals(other.getQuestionname()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getIsusable() == null ? other.getIsusable() == null : this.getIsusable().equals(other.getIsusable()))
            && (this.getQuestiondescribe() == null ? other.getQuestiondescribe() == null : this.getQuestiondescribe().equals(other.getQuestiondescribe()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getQuestionname() == null) ? 0 : getQuestionname().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getIsusable() == null) ? 0 : getIsusable().hashCode());
        result = prime * result + ((getQuestiondescribe() == null) ? 0 : getQuestiondescribe().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", questionname=").append(questionname);
        sb.append(", score=").append(score);
        sb.append(", isusable=").append(isusable);
        sb.append(", questiondescribe=").append(questiondescribe);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}